package com.atlyc.common.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author lyc
 * @date 2018/7/20
 */
@Component
@Order(4)
public class InitApplicationRunner implements ApplicationRunner {

    private static final Logger LOGGER = LoggerFactory.getLogger(InitApplicationRunner.class);
    

    @Override
    public void run(ApplicationArguments applicationArguments) throws Exception {
        LOGGER.info("初始化调用 {}",applicationArguments.getSourceArgs().length);
    }
}
